import java.util.HashSet;
import java.util.Iterator;

public class HashSetTest {
    public static void main(String[] args) {
        HashSet<Integer> set = new HashSet<>();

        set.add(1);
        set.add(2);
        set.add(3);
        set.add(9);
        set.add(8);
        set.add(7);

        Iterator<Integer> iterator = set.iterator();
        while (iterator.hasNext()) {
            // System.out.println(iterator.next());
            System.out.println(iterator.next().hashCode());
        }


    }
}
